package config

var Config = config{
	Mysql: Mysql{
		Host:     "127.0.0.1",
		Port:     "3306",
		Username: "root",
		Password: "root",
		Database: "go",
		Charset:  "utf8mb4",
	},
	Redis: Redis{
		Host:     "127.0.0.1",
		Port:     "6379",
		Password: "",
		Database: 0,
		Prefix:   "server_",
		Poll:     8,
		Conn:     4,
	},
}

type config struct {
	Mysql Mysql
	Redis Redis
}

type Mysql struct {
	Host     string
	Port     string
	Username string
	Password string
	Database string
	Charset  string
}

type Redis struct {
	Host     string
	Port     string
	Password string
	Database int
	Prefix   string
	Poll     int
	Conn     int
}
